Avoid unnecessary pointer scanning in garbage collection (Bug#10780).
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 7 Apr 2012 19:18:52 +0000 (12:18 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 7 Apr 2012 19:18:52 +0000 (12:18 -0700)
commit34568dba1deb77f29cbc1671b442148103a812bb
treee9321dfd22980cf8bbf739c2658212db3d9f4f5f
parent18929dd8a76edf6c809b125324c570d7c68976fb
Avoid unnecessary pointer scanning in garbage collection (Bug#10780).

* alloc.c (POINTERS_MIGHT_HIDE_IN_OBJECTS): New macro.
(mark_memory): Mark Lisp_Objects only if pointers might hide in
objects, as mark_maybe_pointer will catch them otherwise.
(GC_LISP_OBJECT_ALIGNMENT): Remove; no longer needed.
* s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT) [__mc68000__]: Likewise.
src/ChangeLog
src/alloc.c
src/s/gnu-linux.h